<header class="header">
    <nav class="navbar navbar-default" id="navbar">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-navbar" aria-expanded="false"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
                <h1 class="logo hvr-bounce-in">
                    <a href="{{url('/')}}">
                        <img src="{{URL::asset('assets/images/logo.png')}}" />
                    </a>
                </h1>
            </div>
            
            <div class="collapse navbar-collapse" id="header-navbar">
                <ul class="nav navbar-nav navbar-right">
                    <li class="hidden-index active">
                        <a data-cont="首页" href="{{url('/')}}">
                            首页
                        </a>
                    </li>
                    <li><a href="{{url('/type')}}">分类列表</a></li>
                    @foreach($NavList as $item)
                        <li><a href="{{url('/', ['typeid' => $item->id])}}">{{$item->name}}</a></li>
                    @endforeach
                </ul>
                <form class="navbar-form visible-xs" action="/Search" method="post">
                    <div class="input-group">
                        <input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20" autocomplete="off" />
                        <span class="input-group-btn">
                            <button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
                        </span> 
                    </div>
                </form>
            </div>
        </div>
    </nav>
</header>